package com.hong;

import com.hong.qrpc.spring.springboot.starter.annotation.EnableQrpcServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Author HQT
 * @Date 2022/8/2 15:20
 */
@EnableQrpcServer(basePackages = {"com.hong"})
@SpringBootApplication
public class Server {

    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext context = SpringApplication.run(Server.class, args);
//        Thread.sleep(10000);
        RpcServer rpcServer = (RpcServer) context.getBean("rpcServer");
    }
}